<?php
class PermissionHelper extends AppHelper {
    
    var $helpers = array('Session');
    
    function check($path){
    	$permissions = $this->Session->read("permissions");
        if(isset($permissions[strtolower($path)]) && $permissions[strtolower($path)]){
            return true;
        }
        return false;
    }
	
}
